import React from 'react';
import PropTypes from 'prop-types';

type PropTypes = {
  renderIcon?: ()=>(void),
  renderSelectedIcon?: ()=>(void),
  badgeText?: string|number
  renderBadge?: ()=>(void),
  title?: string,
  titleStyle?: any,
  selectedTitleStyle?: any,
  tabStyle?: any,
  selected?: boolean,
  onPress?: ()=>(void),
  allowFontScaling?: boolean,
  style?:any,
}

export default class TabNavigatorItem extends React.Component<PropTypes, any> {
  render() {
    const childComponent = this.props.children as any;
    return React.createElement(childComponent, {
      style:[this.props.style]
    })
  }
}
